// packageH/project_verification/components/panel/panel.js
Component({
  options: {
    multipleSlots: true,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    radius: {
      type: Boolean,
      value: false,
    },
    title: {
      type: String,
      value: "",
    },
    backgroundColor: {
      type: String,
      value: "white",
    },
    padding: {
      type: String,
      value: "28rpx",
    },
    titleFontSize: {
      type: String,
      value: "16px",
    },
    titleFontWeight: {
      type: String,
      value: "normal",
    },
    project_id:{
      type:Number
    }
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    to_project_detail(){
      let project_id = this.data.project_id;
      if(!project_id) return false;
      wx.navigateTo({
        url: '/packageH/project_verification/VerificationProjectDetails/VerificationProjectDetails?project_id=' + project_id,
      })
    }
  },
});
